<template>
	<view class="header">
		<view class="searchBox">
			<image
				src="https://cimg.axureshop.com/47/f6/19/47f6193bc5004b1388c6fa23d2a9bd4e/images/%E9%9D%9E%E7%BF%94%E6%B4%BB%E5%8A%A8/u1817.png">
			</image>
			<navigator url="/pages/Search-results/Search-results">
				<input placeholder="搜索课程/头条/活动" />
			</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		name: "SearchBox",
		data() {
			return {

			};
		}
	}
</script>

<style lang="less" scoped>
	.header {
		display: flex;
		justify-content: center;
		height: 80rpx;
		margin: 42rpx 0;
		line-height: 80rpx;

		.searchBox {
			display: flex;
			align-items: center;
			width: 100%;
			height: 80rpx;
			background-color: #f2f2f2;
			border-radius: 40px;

			image {
				width: 36rpx;
				height: 36rpx;
				margin-left: 34rpx;
				margin-right: 36rpx;
			}

			input {
				color: #9a9a9a;
			}
		}
	}

	.search1 {
		border-bottom: 1px solid #faf9f9;
		padding: 0 42rpx;

		.hot {
			font-size: 26rpx;
			color: #252525;
			margin-bottom: 40rpx;
			margin-top: 22rpx;
			display: flex;
			justify-content: space-between;

			image {
				width: 28rpx;
				height: 32rpx;
				margin-right: 20rpx;
			}
		}
	}
</style>
